@media screen and (min-width: 768px) {
  main {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #182052;
    position: relative;
  }

  main i {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(../img/Garage-boutillerie-logo.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 20%;
    height: 20%;
    max-width: 600px;
    min-width: 300px;
  }

  main form {
    height: 50%;
    width: 30%;
    background-color: #464c74;
    border-radius: 50px;
    padding: 2% 3% 2% 3%;
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 800px;
    min-width: 500px;
  }

  main form h1 {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
  }

  main form p:not(#pswd) {
    height: 10%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    color: white;
    text-transform: uppercase;
    min-width: 200px;
    max-width: 400px;
  }

  main form input {
    border-radius: 100px;
    outline: none;
    border: 0;
  }

  main form .input-text {
    width: 100%;
    height: 12%;
    background-color: #6b6f8f;
    padding-left: 4%;
    caret-color: rgb(255, 255, 255);
    color: white;
    min-width: 200px;
    max-width: 400px;
  }

  main form #forgot {
    height: 12%;
    margin: 0 auto 0 0;
    display: flex;
    align-items: center;
    justify-content: left;
    width: auto;
    color: #89d0e4;
    background-color: transparent;
    border: 0;
    cursor: pointer;
  }

  main form #forgot:hover {
    color: #aed4de;
  }

  main form #pswd {
    color: red;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
  }

  main form .input-submit {
    min-width: 100px;
    margin-top: 6%;
    width: 50%;
    height: 13%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    background-color: #ef6b48;
    font-size: calc(8px + 0.7vw);
    color: white;
    cursor: pointer;
    font-weight: 600;
  }

  #forgotPasswordPopup {
    position: relative;
  }

  #forgotPasswordPopup span {
    position: absolute;
    top: 6%;
    left: 6%;
    cursor: pointer;
    width: 25px;
    height: 25px;
    background-image: url("../img/back.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  #forgotPasswordPopup h1 {
    font-size: 30px;
  }

  #forgotPasswordPopup .input-submit {
    margin: 6% auto 0 auto;
  }

  #emailSentMessage {
    color: rgb(6, 237, 6);
  }
}

/* smartphone */
@media only screen and (max-width: 767px) {
  main {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #182052;
    position: relative;
  }

  main i {
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(../img/Garage-boutillerie-logo.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 20%;
    height: 20%;
    min-width: 250px;
  }

  main form {
    height: 60%;
    width: 40%;
    background-color: #464c74;
    border-radius: 50px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 350px;
    position: relative;
  }

  main form h1 {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(20px + 0.7vw);
    color: white;
  }

  main form p {
    height: 10%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    color: white;
    text-transform: uppercase;
  }

  main form input {
    border-radius: 100px;
    outline: none;
    border: 0;
  }

  main form .input-text {
    width: 100%;
    height: 12%;
    background-color: #6b6f8f;
    padding-left: 4%;
    caret-color: rgb(255, 255, 255);
    color: white;
  }

  main form .input-submit {
    margin-top: 6%;
    width: 50%;
    height: 13%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    background-color: #ef6b48;
    font-size: 17px;
    color: white;
    cursor: pointer;
    font-weight: 600;
  }

  main form #forgot {
    height: 12%;
    margin: 0 auto 0 0;
    display: flex;
    align-items: center;
    justify-content: left;
    width: auto;
    color: #89d0e4;
    background-color: transparent;
    border: 0;
    cursor: pointer;
  }

  #forgotPasswordPopup span {
    position: absolute;
    top: 6%;
    left: 6%;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background-image: url("../img/back.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  #forgotPasswordPopup h1 {
    font-size: 20px;
  }

  #pswd {
    font-size: 10px;
    color: red;
  }
}

/* Tablettes en mode portrait */
/* @media only screen and (min-width: 768px) and (max-width: 991px) {
} */

/* Tablettes en mode paysage */
@media only screen and (min-width: 767px) and (max-width: 1199px) {
  main {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #182052;
    position: relative;
  }

  main i {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(../img/Garage-boutillerie-logo.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 20%;
    height: 20%;
    max-width: 600px;
    min-width: 300px;
  }

  main form {
    height: 50%;
    width: 30%;
    background-color: #464c74;
    border-radius: 50px;
    padding: 2% 6% 2% 6%;
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 800px;
    min-width: 500px;
  }

  main form h1 {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
  }

  main form p {
    height: 10%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    color: white;
    text-transform: uppercase;
    min-width: 200px;
    max-width: 400px;
  }

  main form input {
    border-radius: 100px;
    outline: none;
    border: 0;
  }

  main form .input-text {
    width: 100%;
    height: 12%;
    background-color: #6b6f8f;
    padding-left: 4%;
    caret-color: rgb(255, 255, 255);
    color: white;
    min-width: 200px;
    max-width: 400px;
  }

  main form .input-submit {
    min-width: 100px;
    margin-top: 12%;
    width: 50%;
    height: 13%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    background-color: #ef6b48;
    font-size: calc(8px + 0.7vw);
    color: white;
    cursor: pointer;
    font-weight: 600;
  }
}
